﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cache.FileCache
{
    /// <summary>
    /// 文件缓存配置
    /// </summary>
    public class FileCachedConfig
    {
        private bool _isCache = true;
        private Dictionary<string, FileCachedNode> _nodes=new Dictionary<string,FileCachedNode>();

        /// <summary>
        /// 是否缓存
        /// </summary>
        public bool IsCache
        {
            get
            {
                return _isCache;
            }
            set
            {
                _isCache = value;
            }
        }

        /// <summary>
        /// 节点列表
        /// </summary>
        public Dictionary<string, FileCachedNode> Nodes
        {
            get
            {
                return _nodes;
            }
            set
            {
                _nodes = value;
            }
        }
    }
}
